/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/4
 * Time: 19:02
 * Description: No Description
 */
 class C {
     B b = new B();

}

class B {
    public B() {
        System.out.println("B");
    }
}

class A extends C{
    B b = new B();
    public A() {
        System.out.println("A");
    }
}
public class TestDemo {
    public static void main(String[] args) {
        new A();
    }
}